{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "831c9b9c-79b6-449e-8bb6-5c30c1d67dfd",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0    立管吃\n",
      "1    张洪运\n",
      "2     王鹏\n",
      "dtype: object\n"
     ]
    }
   ],
   "source": [
    "import pandas as pd\n",
    "data=['立管吃', '张洪运', '王鹏']\n",
    "s=pd.Series(data=data)  # Series(data=data, index=[1,2,3]) 手动调整索引\n",
    "print(s)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "8dbe71a3-5ec7-4eaa-b41b-eb685baa69f4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "张三    90\n",
      "李四    98\n",
      "王五    57\n",
      "dtype: int64\n"
     ]
    }
   ],
   "source": [
    "data=[90,98,57]\n",
    "index=['张三','李四','王五']\n",
    "s=pd.Series(data=data, index=index)\n",
    "print(s)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
